package com.kabigon.tiny.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import lombok.*;

import java.util.List;

/**
 * 学生实体类
 * @author xu.biao
 * @version v1.0
 * @Package com.kabigon.tiny.entity
 * @data 2022/5/2 1:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Student {
    @JSONField(name = "stu_id", serialize = false)
    private Integer id;
    @JSONField(name = "stu_name", deserialize = false)
    private String name;
    @JSONField(name = "stu_age")
    private Integer age;
    @JSONField(name = "stu_address")
    private String address;
    @JSONField(name = "stu_phone")
    private String phone;
    @JSONField(name = "teachers")
    private List<Teacher> teacher;
}
